#include "Stdafx.h"
#include "GlobalInstance.h"

namespace Serika
{
	GlobalInstance::GlobalInstance()
		: mDte(nullptr)
		, mAddIn(nullptr)
	{
	}

	GlobalInstance::~GlobalInstance()
	{
	}

	// static
	GlobalInstance^ GlobalInstance::Instance(String^ iden)
	{
		if (sInstDict->ContainsKey(iden))
		{
			return sInstDict[iden];
		}

		GlobalInstance^ gInst = gcnew GlobalInstance;
		sInstDict[iden] = gInst;
		return gInst;
	}
}
